package sistema;

import remoto.IGestion;

public class Main {

	public static void main(String[] args) {
	
		System.out.println(IGestion.class.toString());
		System.out.println(IGestion.class.getProtectionDomain().getCodeSource().getLocation().toString());
		
		System.setProperty("java.security.policy", "java.policy");
		System.setProperty("java.rmi.server.codebase", 
				IGestion.class.getProtectionDomain().getCodeSource().getLocation().toString());
        
		if(System.getSecurityManager() == null) {
            System.setSecurityManager(new SecurityManager());
        } 
		
		BS bs = new BS();
		bs.publicarServicio();
	}
}
